<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>企业注册</title>
<link rel="stylesheet"
	href="<%=request.getContextPath()%>/static/common/plugin/bootstrap-3.3.5/css/bootstrap.min.css">
<link rel="shortcut icon" href="<%=request.getContextPath()%>/static/common/img/favicon.ico"/>
<script
	src="<%=request.getContextPath()%>/static/common/plugin/jquery.min.js"></script>
<script
	src="<%=request.getContextPath()%>/static/common/plugin/bootstrap-3.3.5/js/bootstrap.min.js"></script>
	<script
	src="<%=request.getContextPath()%>/static/common/plugin/nice-validator-1.0.7/dist/jquery.validator.min.js"></script>
</head>
<body>
	<center>
		<h1>企业注册</h1>
	</center>
<!-- 登录失败后的页面显示 -->
		<c:if test="${!empty param.registerErr }">
			<div class="alert alert-success alert-dismissible fade in" role="alert" style="text-align: center;">
		       <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
		       <strong>企业帐号注册失败，或账号已存在,请重新注册！</strong>
			</div>
		</c:if>
		<div class="container">
	<form role="form" class="form-horizontal"
		action="<%=request.getContextPath()%>/CompanyServlet?command=register"
		method="post">
			<div class="form-group has-feedback">
				<label for="code" class="col-sm-2 control-label">账号</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="code" placeholder="账号"
						name="code" data-rule ="required;username">
					<ceneter>
					<span class="label label-warning" id="codeInfo">${hasCode}</span></ceneter>
				</div>
			</div>
			<div class="form-group has-feedback">
				<label for="password" class="col-sm-2 control-label">密码</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="password" placeholder="密码"
						name="password" data-rule ="required;password">
				</div>
			</div>
			<div class="form-group has-feedback">
				<label for="name" class="col-sm-2 control-label">企业名</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="name" placeholder="企业名"
						name="name" data-rule ="required;name">
				</div>
			</div>
			<div class="form-group has-feedback">
				<label for="email" class="col-sm-2 control-label">Email</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="email" placeholder="邮箱"
						name="email" data-rule ="required;email">
				</div>
			</div>
			<div class="form-group has-feedback">
				<label for="phone" class="col-sm-2 control-label">电话</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="phone" placeholder="电话"
						name="phone" data-rule ="required;phone"
						 data-rule-phone="[/^1[3458]\d{9}$/, '请检查手机号格式']">
				</div>
			</div>
			<div class="form-group has-feedback">
				<label for="linkMan" class="col-sm-2 control-label">联系人</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="linkman" placeholder="联系人"
						name="linkman" data-rule ="required;linkman">
				</div>
			</div>
			<div class="form-group has-feedback">
				<label for="address" class="col-sm-2 control-label">地址</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="address" placeholder="地址"
						name="address" data-rule ="required;address">
				</div>
			</div>
			<div class="form-group has-feedback">
				<label for="numbers" class="col-sm-2 control-label">企业总人数</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="numbers" placeholder="规模（人数）"
						name="numbers" data-rule ="required;numbers">
				</div>
			</div>
			<div class="form-group has7-feedback">
				<label for="slogan" class="col-sm-2 control-label">企业宗旨</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="slogan" placeholder="企业宗旨"
						name="slogan" data-rule ="required;slogan">
				</div>
			</div>
			<center>
			<input type="submit" class="btn btn-primary" value="注册">
		</center>
	</form>
	</div>
</body>
</html>